package com.util;

import java.util.List;

public class Person {

	private String name;
	private Integer age;
	private List<Address> addressList;
	private School school;

	public Person(String name, Integer age) {
		super();
		this.name = name;
		this.age = age;
	}
	public Person(String name, Integer age, List<Address> addressList, School school) {
		super();
		this.name = name;
		this.age = age;
		this.addressList = addressList;
		this.school = school;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public List<Address> getAddressList() {
		return addressList;
	}
	public void setAddressList(List<Address> addressList) {
		this.addressList = addressList;
	}
	public School getSchool() {
		return school;
	}
	public void setSchool(School school) {
		this.school = school;
	}
	@Override
	public String toString() {
		return "Person [name=" + name + ", age=" + age + ", addressList=" + addressList + ", school=" + school + "]";
	}

}
